package cn.hackertools.staticresource.entity;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class FileResult implements Serializable {

    /**
     * PAGE : <div><span class='Pcurrent'>1</span><span class='Pnumber'>1/1</span><span class='Pline'>从1-7条</span><span class='Pcount'>共7条数据</span></div>
     * LIST : [{"link":"","filename":"$RECYCLE.BIN","user":"","shell":false,"ext":"","size":0,"ps":"","mtime":1555754210,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"},{"link":"","filename":"360极速浏览器下载","user":"","shell":false,"ext":"","size":0,"ps":"","mtime":1630905963,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"},{"link":"","filename":"backup","user":"","shell":false,"ext":"","size":0,"ps":"","mtime":1630905675,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"},{"link":"","filename":"BaiduNetdiskDownload","user":"","shell":false,"ext":"","size":0,"ps":"","mtime":1630906526,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"},{"link":"","filename":"BtSoft","user":"","shell":false,"ext":"","size":4096,"ps":"","mtime":1631113918,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"},{"link":"","filename":"System Volume Information","user":"","shell":false,"ext":"","size":0,"ps":"","mtime":1555754190,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"},{"link":"","filename":"wwwroot","user":"","shell":false,"ext":"","size":0,"ps":"","mtime":1630905675,"accept":777,"down_id":0,"composer":0,"caret":false,"type":"dir"}]
     * PATH : D:
     * STORE : [{"name":"默认分类","data":[]}]
     * FILE_RECYCLE : true
     */

    @SerializedName("PAGE")
    private String page;
    @SerializedName("PATH")
    private String PATH;
    @SerializedName("FILE_RECYCLE")
    private boolean file_recycle;
    @SerializedName("LIST")
    private List<ListBean> list;
    @SerializedName("STORE")
    private List<StoreBean> store;

    @Data
    public static class ListBean implements Serializable {
        /**
         * link :
         * filename : $RECYCLE.BIN
         * user :
         * shell : false
         * ext :
         * size : 0
         * ps :
         * mtime : 1555754210
         * accept : 777
         * down_id : 0
         * composer : 0
         * caret : false
         * type : dir
         */

        private String link;
        private String filename;
        private String user;
        private boolean shell;
        private String ext;
        private int size;
        private String ps;
        private Long mtime;
        private int accept;
        private int down_id;
        private int composer;
        private boolean caret;
        private String type;
    }

    @Data
    public static class StoreBean implements Serializable {
        /**
         * name : 默认分类
         * data : []
         */

        private String name;
        private List<?> data;
    }
}
